package com.yunshang.shoppingmall.mapper;

import com.yunshang.shoppingmall.entity.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 后台管理员接口类
 */
@Mapper
public interface AdminMapper {
    //根据ID删除
    int deleteByPrimaryKey(Integer adminId);


    int insert(Admin admin);

    //增加
    int insertSelective(Admin admin);

    //根据adminId查询管理员
    Admin selectByPrimaryKey(Integer adminId);

    //更新管理员
    int updateByPrimaryKeySelective(Admin admin);

    int updateByPrimaryKey(Admin record);


    //根据用户名查询
    Admin selectAdminByUserName(String username);
    List<Admin> selectAdminByAdminName(String adminName);
    //查询所有的管理员
   List<Admin> selectAdminList();

}